<template>
  <div class="demo">
    <div class="demo-title">基本</div>
    <div class="demo-content">
      <Calendar v-model:value="value" @panel-change="onPanelChange" />
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import { Dayjs } from 'dayjs';
  import Calendar from '@sscd/calendar';
  const value = ref<Dayjs>();
  const onPanelChange = (val: string | Dayjs, mode: string) => {
    console.log(val, mode);
  };
</script>
